package vip.zhenzicheng.concurrent_program.thread.sgg.lock;

/**
 * javap -c 命令反编译
 *
 * @author zhenzicheng
 * @date 2022-06-22 16:48
 */
public class LockSyncDemo {

  final Object object = new Object();

  // public static void main(String[] args) {
  //
  // }
  //
  // public void m1() {
  //   synchronized (object) {
  //     System.out.println("----hello");
  //   }
  // }

  // public synchronized void m2(){
  //   System.out.println("----hello synchronized method----");
  // }

  public static synchronized void m3() {
    System.out.println("----hello static synchronized m3");
  }

}
